import com.ysx.jobs.ClearImgJob;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class Mytest {

    @Test
    public void test_01() throws IOException {
       ApplicationContext context = new ClassPathXmlApplicationContext("spring-jobs.xml");
        ClearImgJob bean = context.getBean(ClearImgJob.class);
        bean.clearImg();
        System.in.read();

    }




}
